﻿using System;

namespace SS.Ynote.Classic.UI.Forms
{
    public partial class Explorer : WeifenLuo.WinFormsUI.Docking.DockContent
    {
        private Main Main { get; set; }

        public Explorer(Main m)
        {
            InitializeComponent();
            this.shellView1.DoubleClick += new EventHandler(shellView1_DoubleClick);
            this.Main = m;
            this.explorerToolBar1.InitEvents();
        }
         void OnSelect()
        {
            Main.OpenFile(shellView1.SelectedItems[0].FileSystemPath, 0);
        }
        private void shellView1_DoubleClick(object sender, EventArgs e)
        {
            OnSelect();
        }
    }
}
